package libnetdb.dm.assoc.dhp;
import java.util.*;

import libnetdb.dm.assoc.base.*;



public abstract class AbstractScanner implements Scanner{
    private int uid = 0, sid = 0;
    protected int[] toIntArray(Collection c){
        int ids[] = new int[c.size()], n=0;
        for(Iterator it = c.iterator();it.hasNext();)
            ids[n++] = ((Integer)it.next()).intValue();
        return ids;
    }
    abstract public void scan(Itemset transaction);
}